package com.example.mapper;

import com.example.entity.Auth;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.Cacheable;

import java.util.List;

/**
 * @Author:tjf
 * @Description:
 */
public interface AuthMapper {

    /**
     * 根据userId查询属于该userId的所有Auth
     * @param userId
     * @return
     */
    List<Auth> findAllAuthByUserId(int userId);

    List<Auth> selectAllAuth();
    List<Integer> selectAuthIdByRoleId(Integer roleId);
}
